package main

func main() {

}

//#link: https://leetcode-cn.com/problems/destination-city/
func destCity(paths [][]string) string {
	tmpMap := make(map[string]bool)
	for i := 0; i < len(paths); i++ {
		tmpMap[paths[i][0]] = true
	}

	for i := 0; i < len(paths); i++ {
		if _, ok := tmpMap[paths[i][1]]; ok {
			continue
		}
		return paths[i][1]
	}
	return ""
}
